<h1>Editing user</h1>
<p style="text-align: center;">

</p>

<% form_for(@user) do |f| %>
  <%= f.error_messages %>
<legend>Edit User Details</legend>


  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>

<p>
<label for="user_userName">User Name:</label> <br />
<%= f.text_field :userName, :size => 40 %>
</p>
<p>
<label for="user_password">Password:</label> <br />
<%= f.password_field :password, :size => 40 %>
</p>
<p>
<label for="user_password_confirmation">Confirm:</label> <br />
<%= f.password_field :password_confirmation, :size => 40 %>
</p>






<!--% form_for(@user) do |f| %-->
  <!--%= f.error_messages %-->

  <!--p>
    <%= f.label :hashed_password %><br />
    <%= f.text_field :hashed_password %>
  </p-->
  <!--p>
    <%= f.label :salt %><br />
    <%= f.text_field :salt %>
  </p-->
  <!--p>
    <%= f.label :userName %><br />
    <%= f.text_field :userName %>
  </p-->
  <p>
    <%= f.label :contactNumber %><br />
    <%= f.text_field :contactNumber %>
  </p>
  <p>
    <%= f.label :address %><br />
    <%= f.text_area :address, :size => "40x5"%>
  </p>
  <p>
    <%= f.label :emailId %><br />
    <%= f.text_field :emailId %>
  </p>
  <!--p>
    <%= f.label :registered %><br />
    <%= f.check_box :registered %>
  </p-->
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<!--%= link_to 'Show', @user %--> 
<!--%= link_to 'Back', users_path %-->